using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using JNPF.Utils;

namespace JNPF.Basics.Models
{
    /// <summary>
    /// jiushi_customerloandetail信息输出
    /// </summary>
    public class CustomerloandetailUpOutput
    {
        public int id { get; set; }

        /// <summary>
        /// 续贷业务主键
        /// </summary>
        public string serialid { get; set; }

        /// <summary>
        /// 续贷业务主键
        /// </summary>
        public string customerLoanUUID { get; set; }

        /// <summary>
        /// 续贷业务主键
        /// </summary>
        public string parentSerialid { get; set; }

        /// <summary>
        /// 贷款利率
        /// </summary>
        public decimal? rate { get; set; }


        /// <summary>
        /// 合伙人ID
        /// </summary>
        public string partnerUserId { get; set; }

        /// <summary>
        /// 合伙人名称
        /// </summary>
        public string partnerUserRealName { get; set; }

        /// <summary>
        /// 合伙人积分
        /// </summary>
        public decimal? partnerPoint { get; set; }

        /// <summary>
        /// 上级合伙人ID
        /// </summary>
        public string parentPartnerUserId { get; set; }

        /// <summary>
        /// 上级合伙人名称
        /// </summary>
        public string parentPartnerUserRealName { get; set; }

        /// <summary>
        /// 上级合伙人积分(抽佣)
        /// </summary>
        public decimal? parentUserPoints { get; set; }

        /// <summary>
        /// 类型,4：终止 0:跟进中 1：放款 2：续贷  3：结清
        //        (点续贷款，上笔结清。 当前 只有续贷和结清
        //放款之后，只有 续贷  和结清
        //跟进中 只有放款 和终止  
        //）
        /// </summary>
        public int? type { get; set; }


        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime? endDate { get; set; }

        /// <summary>
        /// 结清贷款金额
        /// </summary>
        public decimal? endLendingAmount { get; set; }

        /// <summary>
        /// 结清原因
        /// </summary>
        public string endLendingDesc { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime? lendingDate { get; set; }

        /// <summary>
        /// 合伙人提成积分(关联提成)
        /// </summary>
        public decimal? partnerPoints { get; set; }

        /// <summary>
        /// 上级合伙人提成积分（关联上级抽佣比例）
        /// </summary>=
        public decimal? parentPartnerPoints { get; set; }



        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? creatorTime { get; set; }


        public CustomerloanCrInput customerloanEntity { get; set; }
    }
}
